@extends('layout.layout')
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
<h1>球员管理-球员添加</h1>
	<form action="{{url('admin/playerCreate')}}" method="post" enctype="multipart/form-data">
  @csrf
  <div class="form-group" style="margin-top: 50px">
    <label for="exampleInputEmail1">球员名称</label>
    <input type="text" class="form-control" name="player_name" placeholder="球员名称">
  </div>
   
   <div class="form-group">
    <label for="exampleInputEmail1">所属球队</label>
   
    <select class="form-control" name="team_id">
      <option value="">--请选择--</option>
      @foreach($data as $k=>$v)
      <option value="{{$v->team_id}}">{{$v->team_name}}</option>
      @endforeach
    </select>
  </div>
  <button type="submit" class="btn btn-success">球员添加</button>
</form>
</body>
</html>